<style type="text/css">
body { margin:0; padding:0; text-align:center; font-family:tahoma,arial,"宋体"; }
div { margin:0 auto; padding:0; }
img { border:none; }
a { text-decoration:none; }
a:hover { text-decoration:underline; color:#FF6600 !important; }

#news_imgs_box { margin-bottom:5px; text-align:center; }
#news_imgs_box, #news_imgs { position:relative; /*width:198px; height:108px*/; max-width:248px; min-width:198px; max-height:135px; min-height:108px; }
#news_imgs_box #news_imgs a { position:absolute; top:0; left:0; z-index:0; /*width:198px; height:108px;*/ width:100%; color:#FFFFFF; display:none; }
#news_imgs_box #news_imgs a#e_img_0 { display:block; }
#news_imgs_box #news_imgs a img { /*width:198px; height:108px;*/ width:100%; height:100%; }
#news_imgs_box #news_imgs a .txt { position:absolute; left:0; bottom:0; width:100%; /*width:188px; height:24px;*/ overflow:hidden; line-height:normal; padding:5px 0; font-size:12px; text-align:center; filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70); -moz-opacity:0.7; -khtml-opacity:0.7; opacity:0.7;
background-color:#333333; }
#news_imgs_box #news_imgs a:hover { color:#FFFF66; }
#news_imgs_box a#n_prev, #news_imgs_box a#n_next { position:absolute; top:50%; z-index:97; font-size:36px; text-decoration:none; width:36px; height:36px; line-height:36px; overflow:hidden; text-align:center; font-family:"宋体"; color:#FFFF66; display:none; border-radius:18px; -moz-border-radius:18px; -webkit-border-radius:18px; margin-top:-18px; }
#news_imgs_box a#n_prev { left:0; }
#news_imgs_box a#n_next { left:100%; margin-left:-36px; }
#news_imgs_box a#n_prev:hover, #news_imgs_box a#n_next:hover { color:#FFFFFF; background-color:#666699; filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70); -moz-opacity:0.7; -khtml-opacity:0.7; opacity:0.7; }
</style>
<script type="text/javascript">
var blockA;
var keyC, keyPorN;
var timeS=null;

if (typeof $ != 'function') {
  function $(objId) {
    return document.getElementById(objId);
  }
}

function SetOpacity(ev, v) {
	ev.style.filter = 'alpha(opacity=' + v + ')';
    ev.style.opacity = v / 100
}

function ShowN(e, obj) {
  if (enterAndLeave(e, obj)) {
	var prev = $('n_prev');
	var next = $('n_next');
	if (blockA.length > 1) {
        prev.style.display = next.style.display = 'block';
    }
	if (timeS!=null) {
      clearInterval(timeS);
      timeS=null;
    }
	obj.onmouseout = function(e) {
      if (enterAndLeave(e, this)) {
		prev.style.display = next.style.display = 'none';
		timeS = setInterval('' + nowMode + '', 4000)
      }
	}
  }
}

function enterAndLeave(ev,obj){var E=ev||window.event;if(E.type!='mouseover'&&E.type!='mouseout'){return flase}var theTarget=null;if(E.relatedTarget){theTarget=E.relatedTarget}else{if(E.type=='mouseover'){thisTarget=E.toElement}else{thisTarget=E.fromElement}}while(theTarget&&theTarget!=obj){theTarget=theTarget.parentNode}return(theTarget!=obj)}

function step(PorN) {
	nowMode = 'step(\''+PorN+'\');';
	keyC = keyAt();
	keyPorN = keyAt(PorN);
	blockA[keyC].style.zIndex = 1;
	blockA[keyC].style.display = 'block';
	blockA[keyPorN].style.display = 'block';
	SetOpacity(blockA[keyPorN], 100);
	var val = 100;
	(function() {
		var imgChange = setTimeout(arguments.callee, 20);
		SetOpacity(blockA[keyC], val);
		if (val <= 0) {
			clearTimeout(imgChange)
	        blockA[keyPorN].style.zIndex = 1;
	        blockA[keyC].style.zIndex = 0;
	        blockA[keyC].style.display = 'none';
			keyC = keyPorN;
		}
		val -= 5;
	})();
}

function putLoad() {
document.body.onmouseover=function(event){
ShowN(event, this);
}
	nowMode = 'step(\'N\');';
	newsImgObj = $('news_imgs');
	blockA = newsImgObj.getElementsByTagName('A');
    keyC = 0;
	blockA[keyC].style.zIndex = 1;
	blockA[keyC].style.display = 'block';
    var imgObj0=blockA[keyC].getElementsByTagName('IMG')[0];
	ToParentHeight(imgObj0.offsetWidth, imgObj0.offsetHeight);
	if (blockA.length > 1) {
		timeS = setInterval(''+nowMode+'', 5000);
	}
}

function keyAt(key) {
  switch (key) {
    case 'N':
      return keyC >= blockA.length - 1 ? 0 : keyC + 1;
    case 'P':
      return keyC <= 0 ? blockA.length - 1 : keyC - 1;
    default:
      return keyC >= 0 && keyC <= blockA.length - 1 ? keyC : 0;
  }
}

function ToParentHeight(w, h) {
  var p = parent.$('extraFrameImg');
  if (p != null) {
    var imgW = w > 0 ? w : 228;
    var imgH = h > 0 ? h : 124;
    var pW = p.offsetWidth;
    pW = pW > 0 ? pW : 228;
    p.style.height = parseInt(imgH * pW / imgW)+'px';
  }
}

if (document.all) {
	window.attachEvent('onload', putLoad);
} else {
	window.addEventListener('load', putLoad, false);
}




</script>